
import { client } from "@gradio/client";
//const client = require('@gradio/client');

const app = await client('https://8919j8p607.vicp.fun/');
const result = await app.predict("/use_qa", [
	"Hello",
]);
console.log(result.data);
return;
var http = require("http");

const options = {
    hostname: 'http://1ec3269d.r10.cpolar.top',
    method: 'GET'
  };
   
  // 创建HTTP请求
  const req = http.request(options, (res) => {
    console.log('状态码: ${res.statusCode}');
   
    res.on('data', (d) => {
      //process.stdout.write(d);
      console.log(d);
    });
  });
   
  // 错误处理
  req.on('error', (e) => {
    console.error('请求遇到问题: ' + e);
  });
   
  // 结束请求
  req.end();